package com.example.demo.mp.entity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.example.demo.core.base.BizEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 执行器实例
 * </p>
 *
 * @author JXY
 * @since 2022-03-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("canvas_actuator")
public class CanvasActuatorEntity extends BizEntity<CanvasActuatorEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 画布id
     */
    @TableField("canvas_id")
    private Long canvasId;

    /**
     * 用户标识
     */
    @TableField("user_symbol")
    private String userSymbol;

    /**
     * 节点id
     */
    @TableField("node_id")
    private Long nodeId;

    /**
     * 执行器状态,参照ActuatorStatusEnum
     */
    @TableField("status")
    private Integer status;

    /**
     * 最早允许执行时间
     */
    @TableField("min_time")
    private Long minTime;

    /**
     * 最晚允许的执行时间
     */
    @TableField("max_time")
    private Long maxTime;

    /**
     * 执行结果
     */
    @TableField("result")
    private String result;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
